home *** CD-ROM | disk | FTP | other *** search
/ Internet 53 / INTERNET53.iso / pc / software / windows / building / coldfusion studio evaluation / data1.cab / CFS_Wizards / CFML / Tree Control.vtm < prev    next >
Encoding:
Text File  |  1998-10-08  |  8.5 KB  |  207 lines

  1. <WIZARD name="TreeControlWizard" caption="Tree Control Wizard" image="..\\images\\wizardoutput.bmp">
  2.  
  3. <!--- wizards parameters --->
  4. <PARAM name="ApplicationName" value="" required="yes">
  5. <PARAM name="TreeSourceType" value="1" required="yes">
  6. <PARAM name="RootItem" value="" required="yes">
  7. <PARAM name="ActionURL" value="" required="yes">
  8. <PARAM name="ItemIcons" value="2" required="yes">
  9.  
  10.  
  11. <PARAM name="DataSource" value="" required="yes">
  12. <PARAM name="Tables" value="" required="yes">
  13. <PARAM name="Joins" value="">
  14. <PARAM name="GroupFields" value="">
  15. <PARAM name="IDField" value="">
  16. <PARAM name="DescriptionField" value="">
  17. <PARAM name="ParentIDField" value="">
  18.  
  19.  
  20.  
  21. <TEMPLATE
  22.   name="TreeControl_TreeControl.wml"
  23.   outputFile="$${SafeApplicationName}_TreeControl.cfm"
  24.   outputPath="$${Location}"
  25.   description="The page containing the tree control"
  26. >
  27.  
  28. <!----
  29. <TEMPLATE
  30.   name="TreeControl_OpenItem.wml"
  31.   outputFile="$${SafeApplicationName}_OpenItem.cfm"
  32.   outputPath="$${Location}"
  33.   description="The page receives information about selected item when user clicks the Open button below the tree control."
  34. >
  35. ---->
  36.  
  37. <!------------------ Enter application params ----------------------->
  38. <PAGE name="Page1" caption="Tree Control Application" image="..\\images\\Main.bmp">
  39.  
  40.     <INPUT name="editApplicationName" param="ApplicationName" required="yes"
  41.         validationMsg="You cannot leave the Application Name field blank">
  42.  
  43.     <INPUT name="editLocation" param="Location"    required="yes"
  44.         validationMsg="You cannot leave the Location field blank">
  45.  
  46. </PAGE>
  47.  
  48.  
  49. <!------------------- Select tree source type ------------------->
  50. <PAGE name="Page8" caption="Tree source type" image="..\\images\\TreeType.bmp">
  51.     
  52.     <INPUT name="rbgTreeSourceType" param="TreeSourceType" required="yes"
  53.         validationMsg="You have to select the tree source type">
  54.     
  55.     <PARAM name="ResetParams" value="Joins,IDField,DescriptionField,ParentIDField,GroupFields">
  56.     <PARAM name="RemoveParams" value="Tables,ItemIcons">
  57.  
  58. </PAGE>
  59.  
  60.  
  61.  
  62. <!--------------- Select data source ------------------------>
  63. <PAGE name="Page2" caption="Data Source" image="..\\images\\SelectData.bmp">
  64.  
  65.     <PARAM name="ListBoxLabel" value="Select data source:">
  66.     <PARAM name="ListBoxDescription"
  67.         value="Choose the data source from which you would like to display data.\n\nIf your database is not registered as ODBC data source, open the ODBC administrator in Control Panel and add system data source for this database.">
  68.     <PARAM name="ResetParams" value="Joins,IDField,DescriptionField,ParentIDField,GroupFields">
  69.     <PARAM name="RemoveParams" value="Tables,ItemIcons">
  70.     
  71.     <INPUT name="cbDataSources" param="DataSource" required="yes"
  72.         validationMsg="You did not select the data source. Please select one before proceeding.">
  73.  
  74.     <!--- if field grouping is selected skip the single table, ID field and parentID field selection --->
  75.     <NEXTPAGE name="Page3" condition="$${ (TreeSourceType EQ '1') }">
  76.  
  77. </PAGE>
  78.  
  79.  
  80. <!---------------- Select table -------------------------->
  81. <PAGE name="Page3a" caption="Table" image="..\\images\\SelectTable.bmp">
  82.  
  83.     <PARAM name="DataSource" value="$${DataSource}">
  84.     <PARAM name="ListBoxLabel" value="Select database table:">
  85.     <PARAM name="ListBoxDescription"
  86.         value="Choose the database table which contains data you would like to display in the tree control.">
  87.     <PARAM name="ResetParams" value="IDField,DescriptionField,ParentIDField">
  88.     <PARAM name="RemoveParams" value="ItemIcons">
  89.  
  90.     <INPUT name="cbTables" param="Tables" required="yes"
  91.         validationMsg="You did not select the table. Please select one before proceeding.">
  92.  
  93. </PAGE>
  94.  
  95.  
  96. <!------------------- Select ID field ------------->
  97. <PAGE name="Page4a_IDField" caption="ID Field" image="..\\images\\IDField.bmp">
  98.  
  99.     <PARAM name="DataSource" value="$${DataSource}">
  100.     <PARAM name="Tables" value="$${Tables}">
  101.     <PARAM name="ListBoxLabel" value="Select the ID field:">
  102.     <PARAM name="ListBoxDescription" 
  103.         value="ID field is table field containing values that uniquely identify each record within the table.\n\nFor example in table Employees the field containing the employee identification numbers will be the ID field.\n\n\nNOTE: In order to run the generated templates you have to install the CFX_MAKE_TREE tag extension (available for download from the CF_TagGallery at www.allaire.com).">
  104.     <PARAM name="MultiSelect" value="no">
  105.  
  106.     <INPUT name="cbFields" param="IDField" required="yes"
  107.         validationMsg="You did not select the ID field. Please select one before proceeding.">
  108.  
  109. </PAGE>
  110.  
  111.  
  112. <!------------------- Select description field ------------->
  113. <PAGE name="Page4a_DescriptionField" caption="Description Field" image="..\\images\\SelectFieldsField.bmp">
  114.  
  115.     <PARAM name="DataSource" value="$${DataSource}">
  116.     <PARAM name="Tables" value="$${Tables}">
  117.     <PARAM name="ListBoxLabel" value="Select the description field">
  118.     <PARAM name="ListBoxDescription" 
  119.         value="Description field is the field whose content will be displayed as the tree item.\n\nFor example in table Employees the field containing the employee name can be the description field.">
  120.     <PARAM name="MultiSelect" value="no">
  121.  
  122.     <INPUT name="cbFields" param="DescriptionField" required="yes"
  123.         validationMsg="You did not select the description field. Please select one before proceeding.">
  124.  
  125. </PAGE>
  126.  
  127.  
  128. <!------------------- Select ID field ------------->
  129. <PAGE name="Page4a_ParentIDField" caption="Parent ID Field" image="..\\images\\ParentIDField.bmp">
  130.  
  131.     <PARAM name="DataSource" value="$${DataSource}">
  132.     <PARAM name="Tables" value="$${Tables}">
  133.     <PARAM name="ListBoxLabel" value="Select the parent ID field:">
  134.     <PARAM name="ListBoxDescription" 
  135.         value="Parent ID field is table field containing ID value of another record the particular record belongs to.\n\nFor example in table Employees the field containing the identification number of the employee's manager will be the parent ID field.">
  136.     <PARAM name="MultiSelect" value="no">
  137.  
  138.     <INPUT name="cbFields" param="ParentIDField" required="yes"
  139.         validationMsg="You did not select the parent ID field. Please select one before proceeding.">
  140.  
  141.     <!--- skip the group fields selection --->
  142.     <NEXTPAGE name="Page8a" condition="$${ 'TRUE' }">
  143.  
  144. </PAGE>
  145.  
  146.  
  147.  
  148. <!---------------- Select tables -------------------------->
  149. <PAGE name="Page3" caption="Tables" image="..\\images\\SelectTable.bmp">
  150.  
  151.     <PARAM name="DataSource" value="$${DataSource}">
  152.     <PARAM name="ListBoxLabel" value="Select database tables:">
  153.     <PARAM name="ListBoxDescription"
  154.         value="Please specify the tables that contain data which will be displayed in the tree control.\n\nPress Ctrl or Shift together with the mouse click in order to select more than one table. Do not select unrelated tables.">
  155.     <PARAM name="MultiSelect" value="yes">
  156.     <PARAM name="ResetParams" value="Joins">
  157.     <PARAM name="RemoveParams" value="GroupFields,ItemIcons">
  158.  
  159.     <INPUT name="lstTables" param="Tables" required="yes" 
  160.         validationMsg="You did not select any tables. Please select at least one before proceeding.">
  161.  
  162. </PAGE>
  163.  
  164.  
  165.  
  166. <!------------------- Select joins ------------------------->
  167. <PAGE name="Page3b" caption="Table Joins" image="..\\images\\SelectJoins.bmp">
  168.  
  169.   <PARAM name="DataSource" value="$${DataSource}">
  170.   <PARAM name="Tables" value="$${Tables}">
  171.   <PARAM name="ListContent" value="$${Joins}">
  172.   <INPUT name="lstJoins" param="Joins">
  173.  
  174. </PAGE>
  175.  
  176.  
  177. <!------------------ Select group fields ---------------------->
  178. <PAGE name="Page4b" caption="Select Group Fields" image="..\\images\\SelectFields.bmp">
  179.  
  180.     <PARAM name="DataSource" value="$${DataSource}">
  181.     <PARAM name="Tables" value="$${Tables}">
  182.     <PARAM name="GroupBoxLabel" value="Select group fields:">
  183.     <PARAM name="GroupBoxDescription" 
  184.         value="Use the Add button for adding the field to the list of group fields below. The order in which the group fields are listed determines how they will be displayed in the tree control.">
  185.  
  186.     <INPUT name="lstFields" param="GroupFields" required="yes">
  187.  
  188. </PAGE>
  189.  
  190.  
  191.  
  192. <!------------------- Tree control settings ----------------------->
  193. <PAGE name="Page8a" caption="Tree control settings" image="..\\images\\TreeSettings.bmp">
  194.  
  195.     <INPUT name="editRootItem" param="RootItem" required="yes"
  196.         validationMsg="You have to enter the root item name">
  197.     <INPUT name="editActionURL" param="ActionURL" required="yes"
  198.         validationMsg="You have to enter the action URL string">
  199.     <INPUT name="rbgItemIcons" param="ItemIcons" required="yes"
  200.         validationMsg="You have to select the type of icons for the tree control">
  201.  
  202. </PAGE>
  203.  
  204.  
  205.  
  206. </WIZARD>
  207.